package com.restaurant.application.indexes.reservationlist;

import com.nebutown.base.Unit;
import com.nebutown.generation.basictype.UID;
import com.restaurant.application.indexes.reservationlist.mysql.ReservationListBean;
import com.restaurant.application.minifacade.data.ReservationPageBO;
import com.restaurant.application.reservation.support.ReservationData;

import java.util.List;


/**
 * 预约列表
 *
 * @author Administrator
 */
public interface AssistReservationList extends Unit {

    /**
     * 新增基元向大表单写入记录
     *
     * @param uid  基元uid
     * @param data 基元data
     * @return ReservationListBean
     */
    ReservationListBean createBean(UID uid, ReservationData data);

    /**
     * 基元向大表单贡献数据
     *
     * @param uid  基元uid
     * @param data 基元 data
     * @param bean ReservationListBean
     * @return ReservationListBean
     */
    ReservationListBean updateBean(UID uid, ReservationData data, ReservationListBean bean);

    /**
     * 小程序端获取客户的预约
     *
     * @param customerUid 客户uid
     * @return ReservationBean list
     */
    List<ReservationPageBO> getReservationBean(UID customerUid);
}
